package com.power.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.github.pagehelper.PageInfo;
import com.power.model.pojo.Log;
import com.power.service.LogService;
@RestController
@RequestMapping("/log")
public class LogController {
	@Autowired
	LogService ls;
	List<Log> list;
	@RequestMapping("/all")
	public PageInfo<Log> selectByUid(Integer uid,Integer pageNum,Integer pageSize){
		list=ls.selectByUid(uid, pageNum, pageSize);
		PageInfo<Log> pager=new PageInfo<Log>(list);
		return pager;
	}
}
